package com.ruiysoft.controller.mdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruiysoft.controller.integralmdse.vo.IntegralMdseVo;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.Objects;

/**
 * SkuListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-27T03:44:58.202+08:00")

public class SkuListVo   {
  @JsonProperty("skuId")
  private Long skuId = null;

  @JsonProperty("category")
  private String category = null;

  @JsonProperty("unitPrice")
  private String unitPrice = null;

  @JsonProperty("listPrice")
  private String listPrice = null;

  @JsonProperty("quantity")
  private Integer quantity = null;

  @JsonProperty("integralMdse")
  private IntegralMdseVo integralMdse = null;

  @JsonProperty("photo")
  private String photo = null;

  @JsonProperty("status")
  private Integer status = null;

  @JsonProperty("skuName")
  private String skuName = null;

  @JsonProperty("ruleValues")
  private String ruleValues = null;

  Integer sequence;

  public SkuListVo skuId(Long skuId) {
    this.skuId = skuId;
    return this;
  }

  /**
   * Get skuId
   * @return skuId
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getSkuId() {
    return skuId;
  }

  public void setSkuId(Long skuId) {
    this.skuId = skuId;
  }

  public SkuListVo category(String category) {
    this.category = category;
    return this;
  }

  /**
   * 分类名
   * @return category
  **/
  @ApiModelProperty(example = "衣服", value = "分类名")


  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public SkuListVo unitPrice(String unitPrice) {
    this.unitPrice = unitPrice;
    return this;
  }

  /**
   * 销售价
   * @return unitPrice
  **/
  @ApiModelProperty(example = "1", value = "销售价")


  public String getUnitPrice() {
    return unitPrice;
  }

  public void setUnitPrice(String unitPrice) {
    this.unitPrice = unitPrice;
  }

  public SkuListVo listPrice(String listPrice) {
    this.listPrice = listPrice;
    return this;
  }

  /**
   * 市场价(可能不需要)
   * @return listPrice
  **/
  @ApiModelProperty(example = "1", value = "市场价(可能不需要)")


  public String getListPrice() {
    return listPrice;
  }

  public void setListPrice(String listPrice) {
    this.listPrice = listPrice;
  }

  public SkuListVo quantity(Integer quantity) {
    this.quantity = quantity;
    return this;
  }

  /**
   * 库存
   * @return quantity
  **/
  @ApiModelProperty(example = "1", value = "库存")


  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public SkuListVo integralMdse(IntegralMdseVo integralMdse) {
    this.integralMdse = integralMdse;
    return this;
  }

  /**
   * Get integralMdse
   * @return integralMdse
  **/
  @ApiModelProperty(value = "")

  @Valid

  public IntegralMdseVo getIntegralMdse() {
    return integralMdse;
  }

  public void setIntegralMdse(IntegralMdseVo integralMdse) {
    this.integralMdse = integralMdse;
  }

  public SkuListVo photo(String photo) {
    this.photo = photo;
    return this;
  }

  /**
   * 封面图
   * @return photo
  **/
  @ApiModelProperty(example = "http://c.hiphotos.baidu.com/image/pic/item/b2de9c82d158ccbffea08a4c14d8bc3eb13541a3.jpg", value = "封面图")


  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo;
  }

  public SkuListVo status(Integer status) {
    this.status = status;
    return this;
  }

  /**
   * 上下架状态（1，上架，2，下架）
   * @return status
  **/
  @ApiModelProperty(value = "上下架状态（1，上架，2，下架）")


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public SkuListVo skuName(String skuName) {
    this.skuName = skuName;
    return this;
  }

  /**
   * spuName+规格值
   * @return skuName
  **/
  @ApiModelProperty(value = "spuName+规格值")


  public String getSkuName() {
    return skuName;
  }

  public void setSkuName(String skuName) {
    this.skuName = skuName;
  }

  public String getRuleValues() {
    return ruleValues;
  }

  public SkuListVo ruleValues(String ruleValues) {
    this.ruleValues = ruleValues;
    return this;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SkuListVo skuListVo = (SkuListVo) o;
    return Objects.equals(this.skuId, skuListVo.skuId) &&
        Objects.equals(this.category, skuListVo.category) &&
        Objects.equals(this.unitPrice, skuListVo.unitPrice) &&
        Objects.equals(this.listPrice, skuListVo.listPrice) &&
        Objects.equals(this.quantity, skuListVo.quantity) &&
        Objects.equals(this.integralMdse, skuListVo.integralMdse) &&
        Objects.equals(this.photo, skuListVo.photo) &&
        Objects.equals(this.status, skuListVo.status) &&
        Objects.equals(this.skuName, skuListVo.skuName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(skuId, category, unitPrice, listPrice, quantity, integralMdse, photo, status, skuName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SkuListVo {\n");

    sb.append("    skuId: ").append(toIndentedString(skuId)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
    sb.append("    listPrice: ").append(toIndentedString(listPrice)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    integralMdse: ").append(toIndentedString(integralMdse)).append("\n");
    sb.append("    photo: ").append(toIndentedString(photo)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    skuName: ").append(toIndentedString(skuName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  public Integer getSequence() {
    return sequence;
  }

  public void setSequence(Integer sequence) {
    this.sequence = sequence;
  }
}

